/**
 * Created by ztt on 2017/11/15.
 */
const fs=require('fs');
fs.readFile('app.js',function (err,data) {
    if(err){
        return console.error(err);
    }
    console.log(data.toString());
});

const data=fs.readFileSync('app.js');
console.log(data.toString());
